﻿Public Class knm2012BUS
    Private dao = New knm2012DAO

#Region "tabcongtruong"
    Public Function GetDataCT() As List(Of congtruong)
        Return dao.GetDataCT()
    End Function
    Public Function InsertUpdateCT(ByVal congtruong As congtruong, ByVal flag As Integer)
        Return dao.InsertUpdateCT(congtruong, flag)
    End Function
    Public Function DeleteCT(ByVal congtruong As congtruong)
        Return dao.DeleteCT(congtruong)
    End Function
#End Region

#Region "tabdatda"
    Public Function GetDataDD() As List(Of datda)
        Return dao.GetDataDD()
    End Function
    Public Function DeleteDD(ByVal datda As datda)
        Return dao.DeleteDD(datda)
    End Function
    Public Function InsertUpdateDD(ByVal datda As datda, ByVal flag As Integer)
        Return dao.InsertUpdateDD(datda, flag)
    End Function
#End Region

#Region "tabmaykhoan"
    Public Function GetDataMK() As List(Of maykhoan)
        Return dao.GetDataMK()
    End Function
    Public Function DeleteMK(ByVal maykhoan As maykhoan)
        Return dao.DeleteMK(maykhoan)
    End Function
    Public Function InsertUpdateMK(ByVal maykhoan As maykhoan, ByVal flagmk As Integer)
        Return dao.InsertUpdateMK(maykhoan, flagmk)
    End Function
#End Region

#Region "tablokhoan"
    Public Function GetDataLK() As List(Of lokhoan)
        Return dao.GetDataLK()
    End Function
    Public Function DeleteLK(ByVal lokhoan As lokhoan)
        Return dao.DeleteLK(lokhoan)
    End Function
    Public Function InsertUpdateLK(ByVal lokhoan As lokhoan, ByVal flaglk As Integer)
        Return dao.InsertUpdateLK(lokhoan, flaglk)
    End Function
#End Region

#Region "tabthuocno"
    Public Function GetDaTaTN() As List(Of thuocno)
        Return dao.GetDataTN()
    End Function
    Public Function DeleteTN(ByVal thuocno As thuocno)
        Return dao.DeleteTN(thuocno)
    End Function
    Public Function InsertUpdateTN(ByVal thuocno As thuocno, flag As Integer)
        Return dao.InsertUpdateTN(thuocno, flag)
    End Function
#End Region

#Region "tabkipno"
    Public Function GetDaTaKN() As List(Of kipno)
        Return dao.GetDataKN()
    End Function
    Public Function DeleteKN(ByVal kipno As kipno)
        Return dao.DeleteKN(kipno)
    End Function
    Public Function InsertUpdateKN(ByVal kipno As kipno, flag As Integer)
        Return dao.InsertUpdateKN(kipno, flag)
    End Function
#End Region

#Region "tabdayno"
    Public Function GetDaTaDN() As List(Of dayno)
        Return dao.GetDaTaDN()
    End Function
    Public Function DeleteDN(ByVal dayno As dayno)
        Return dao.DeleteDN(dayno)
    End Function
    Public Function InsertUpdateDN(ByVal dayno As dayno, ByVal flag As Integer)
        Return dao.InsertUpdateDN(dayno, flag)
    End Function
#End Region

#Region "tabmaynomin"
    Public Function GetDataMN() As List(Of maynomin)
        Return dao.GetDataMN()
    End Function
    Public Function DeleteMN(ByVal mayno As maynomin)
        Return dao.DeleteMN(mayno)
    End Function
    Public Function InsertUpdateMN(ByVal mayno As maynomin, ByVal flag As Integer)
        Return dao.InsertUpdateMN(mayno, flag)
    End Function
#End Region

#Region "tabphuongphapno"
    Public Function GetDataPPN() As List(Of phuongphapno)
        Return dao.GetDataPPN()
    End Function
    Public Function DeletePPN(ByVal ppno As phuongphapno)
        Return dao.DeletePPN(ppno)
    End Function
    Public Function InsertUpdatePPN(ByVal ppno As phuongphapno, flag As Integer)
        Return dao.InsertUpdatePPN(ppno, flag)
    End Function
#End Region

#Region "tabphukienno"
    Public Function GetDataPK() As List(Of phukienno)
        Return dao.GetDataPK()
    End Function
    Public Function DeletePK(ByVal pkno As phukienno)
        Return dao.DeletePK(pkno)
    End Function
    Public Function InsertUpdatePK(ByVal pkno As phukienno, ByVal flagpk As Integer)
        Return dao.InsertUpdatePK(pkno, flagpk)
    End Function
#End Region

#Region "tabhochieukhoannomin"
    Public Function GetDataHC() As List(Of hcknm)
        Return dao.GetDataHC()
    End Function
    Public Function DeleteHC(ByVal hochieu As hcknm)
        Return dao.DeleteHC(hochieu)
    End Function
    Public Function InsertUpdateHC(ByVal hochieu As hcknm, ByVal flaghc As Integer)
        Return dao.InsertUpdateHC(hochieu, flaghc)
    End Function
#End Region

#Region "tabhethong"
    Public Function Backup(ByVal filename As String, ByVal patch As String)
        Return dao.Backup(filename, patch)
    End Function
    Public Function Restore(ByVal dbname As String, ByVal patch As String)
        Return dao.Restore(dbname, patch)
    End Function
#End Region

#Region "tabtinhtoan"
    Public Function TinhToan(ByVal mahochieu As String, ByVal ghichu As String)
        Return dao.TinhToan(mahochieu, ghichu)
    End Function
    Public Function GetDataTinhToan(ByVal mahochieu As String)
        Return dao.GetDataTinhToan(mahochieu)
    End Function
    Public Function GetDataDaTinhToan(ByVal mahochieu As String)
        Return dao.GetDataDaTinhToan(mahochieu)
    End Function
#End Region

    Public Function GetDataCongTruong(ByVal mahochieu As String)
        Return dao.GetDataCongTruong(mahochieu)
    End Function
    Public Function GetDataLct(ByVal mahochieu As String)
        Return dao.GetDataLct(mahochieu)
    End Function
    Public Function GetDattaw(ByVal mahochieu As String)
        Return dao.GetDataw(mahochieu)
    End Function
    Public Function GetDataa(ByVal mahochieu As String)
        Return dao.GetDataa(mahochieu)
    End Function
    Public Function GetDataLb(ByVal mahochieu As String)
        Return dao.GetDataLb(mahochieu)
    End Function
    Public Function GetDataLt(ByVal mahochieu As String)
        Return dao.GetDataLt(mahochieu)
    End Function
    Public Function GetDataLk(ByVal mahochieu As String)
        Return dao.GetDataLk(mahochieu)
    End Function
    Public Function GetDataLkt(ByVal mahochieu As String)
        Return dao.GetDataLkt(mahochieu)
    End Function
    Public Function GetDatab(ByVal mahochieu As String)
        Return dao.GetDatab(mahochieu)
    End Function
End Class

